# main.py
from fastapi import FastAPI
from config.common_response import success_response, error_response, failure_response

app = FastAPI()


# 定义主类
class BaseController:
    def __init__(self):
        self.app = app  # 在主类中共享主应用程序对象
        self.success_response = success_response  # 在主类中共享通用返回函数
        self.error_response = error_response
        self.failure_response = failure_response
